package com.demo.bean;

import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * Created by wangzhanjin on 2018/5/9.
 */
@Data
public class BaseUserDto {
    private String user_code;
    private String user_id;
    private String phone_number;
    private String real_name;
    private String id_type = "0";//证件类型，必须是身份证0
    private String id_number;


    /**
     * 获取基础用户类
     * @param o
     * @return
     */
    public static BaseUserDto objectToBaseUser(Object o) {
        BaseUserDto baseUserDto = new BaseUserDto();
        BeanUtils.copyProperties(o, baseUserDto);
        return baseUserDto;
    }


}















